exports.financeManager = function(req,res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    var resultData = {};

    //任务流创建
    async.waterfall([

            //获取可提现的额度
            function(cb){

                R.SEND_HTTP(
                    req,
                    {
                        url    : CORE_APIConfig.coreAPI.withdrawalBalance,
                        method : 'POST',
                        data   : {
                            wdr_oid : restfulParams.o_id
                        }
                    },
                    function (err, data) {

                        //console.log(data);

                        resultData.diffMoney = data.data;

                        cb();
                    }
                );
                
            },

            //获取体现记录
            function(cb){
                
                R.SEND_HTTP(
                    req,
                    {
                        url    : CORE_APIConfig.coreAPI.searchWithdrawalRecord+"/wdr_oid/"+restfulParams.o_id+"/sort_order/wdr_create_time-desc",
                        method : 'GET'
                    },
                    function (err, data) {

                        resultData.withdrawData = data.data;

                        cb();
                    }
                );

            }

          
        ],function(err, result){

            //返回最终拼接结果
            RES.response(res,true,resultData);

        });
}